const { contextBridge, ipcRenderer } = require('electron');

contextBridge.exposeInMainWorld('electron', {
    requestRandomNumber: () => ipcRenderer.send('request-random-number'),
    onRandomNumber: (callback) => ipcRenderer.on('random-number', (event, data) => callback(data))
});
